﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.DB.NewModel.Device
{
    public class DeviceWorkStatus
    {
        public int Id { get; set; }
        public int DeviceId { get; set; }
        /// <summary>
        /// 后备电源电压
        /// </summary>
        public string Ups { get; set; }
        /// <summary>
        /// 主电源电压
        /// </summary>
        public string Voltage { get; set; }
        /// <summary>
        /// 工作环境温度(摄氏度)
        /// </summary>
        public string Temperature { get; set; }
        /// <summary>
        /// 继电器物理状态 0--COM和NC常闭；1--COM和NO常闭
        /// </summary>
        public int Relay { get; set; }
        /// <summary>
        /// 常开状态0表示常闭，1常开
        /// </summary>
        public int Keepopen { get; set; }
        /// <summary>
        /// 门磁状态 0表关，1表示开
        /// </summary>
        public int DoorSensor { get; set; }
        /// <summary>
        /// 电锁状态 0表关，1表示开
        /// </summary>
        public int LockSensor { get; set; }
        /// <summary>
        /// 锁定状态0--未锁定，1--锁定
        /// </summary>
        public int Locked { get; set; }
        /// <summary>
        /// 消息推送状态0--禁用，1--启用
        /// </summary>
        public int MsgPush { get; set; }
        /// <summary>
        /// 报警状态，无报警为空字符串，多个报警用逗号分隔多个报警名称
        /// fire 消防报警
        /// blacklist 黑名单报警
        /// anti 防拆报警
        /// Illegal 非法验证
        /// password 胁迫报警密码
        /// openTimeout 开门超时报警
        /// </summary>
        public string Alarm { get; set; }
    }
}
